package com.flyco.modules.fenxiao.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.flyco.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;

/**
 * @Description: 全局分销员配置
 * @Author: flyco
 * @Date:   2020-07-07
 * @Version: V1.0
 */
@Data
@TableName("sys_dist_config")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="sys_dist_config对象", description="全局分销员配置")
public class SysDistConfig {
    
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**分销员等级升降类型: 1终身/只升不降， 2保级，按周期升降， 3每周期清0重新算*/
	@Excel(name = "分销员等级升降类型: 1终身/只升不降， 2保级，按周期升降， 3每周期清0重新算", width = 15)
    @ApiModelProperty(value = "分销员等级升降类型: 1终身/只升不降， 2保级，按周期升降， 3每周期清0重新算")
	@Dict(dicCode = "dist_level_type")
	private Integer distLevelType;
	/**分销员等级周期（月：30/年：365）*/
	@Excel(name = "分销员等级周期（月：30/年：365）", width = 15)
    @ApiModelProperty(value = "分销员等级周期（月：30/年：365）")
	@Dict(dicCode = "dist_level_period")
	private Integer distLevelPeriod;
	/**支付后分润金冻结天数*/
	@Excel(name = "支付后分润金冻结天数", width = 15)
    @ApiModelProperty(value = "支付后分润金冻结天数")
	private Integer payFrozenDays;
	/**发货后分润金冻结天数*/
	@Excel(name = "发货后分润金冻结天数", width = 15)
	@ApiModelProperty(value = "发货后分润金冻结天数")
	private Integer deliveryFrozenDays;
	/**用户收货后分润金冻结天数*/
	@Excel(name = "用户收货后分润金冻结天数", width = 15)
	@ApiModelProperty(value = "用户收货后分润金冻结天数")
	private Integer receiveFrozenDays;
	/**冻结金能否下单*/
	@Excel(name = "冻结金能否下单", width = 15)
    @ApiModelProperty(value = "冻结金能否下单")
	@Dict(dicCode = "yn")
	private Integer frozenOrderFlag;
	/**代开发票税率*/
	@Excel(name = "代开发票税率", width = 15)
    @ApiModelProperty(value = "代开发票税率")
	private java.math.BigDecimal invoiceTax;
	/**代开发票服务费*/
	@Excel(name = "代开发票服务费", width = 15)
    @ApiModelProperty(value = "代开发票服务费")
	private java.math.BigDecimal invoiceServiceFee;
	/**创建人*/
	@Excel(name = "创建人", width = 15)
	@ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**更新人*/
	@Excel(name = "更新人", width = 15)
	@ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value = "更新时间")
	private Date updateTime;
}
